<?php


class mcItem 
{
	
	protected $_title 			= null;
	protected $_mcVote 			= null;
	protected $_usVote 			= null;
	protected $_release 		= null;
	protected $_releaseDate 	= null;
	protected $_platform 		= null;
	
	function __construct(){
		$this->_releaseDate = Array();
	}

	public function setTitle($title){ $this->_title = $title; } 
	public function setMcVote($vote){ $this->_mcVote = $vote; }
	public function setUsVote($vote){ $this->_usVote = $vote; }
	public function setRelease($release){ $this->_release = $release; }
	public function setPlatform($platform) { $this->_platform = $platform; }
	
	public function getTitle() { return $this->_title; }
	public function getMcVote() { return $this->_mcVote; }
	public function getUsVote() { return $this->_usVote; }
	public function getRelease() { return $this->_release; }
	public function getPlatform() { return $this->_platform; }
	public function getReleaseMonth() { return $this->_releaseDate['month']; }
	public function getReleaseDay() { return $this->_releaseDate['day']; }
	
	public function setReleaseDate($date) {
		$months = array ('Gen'=>1,'Feb'=>2,'Mar'=>3,'Apr'=>4,'May'=>5,'Jun'=>6,'Jul'=>7,'Ago'=>8,'Sep'=>9,'Oct'=>10,'Nov'=>11,'Dec'=>12);
		$mm = substr($date,0,3);
		$this->_releaseDate['month'] 	= $months[$mm];
		$this->_releaseDate['day'] 		= trim(substr($date,4,2));
	}
	
	
}

?>